﻿using System;
using UnityEngine;

[RequireComponent(typeof(Camera))]
public class CameraSetReplacementShader : MonoBehaviour
{
    public Shader shader;

    public void Apply()
    {
        base.GetComponent<Camera>().SetReplacementShader(this.shader, null);
    }

    public void Reset()
    {
        base.GetComponent<Camera>().ResetReplacementShader();
    }
}

